/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bolao.util;

/**
 *
 * @author 
 */
public class DerbyExceptionHandler extends DatabaseExceptionHandler {

    
    public boolean isErroDeRestricaoDeIntegridade(String err) {
        return su.regexpMatch(err, "java.sql.SQLIntegrityConstraintViolationException");
    }

    public boolean isErroDeConexao(String err) {
        return su.regexpMatch(err, "(java.sql.SQLNonTransientConnectionException|java.net.ConnectException)");
    }

}
